package com.ganjiangps.huochetou.service.impl;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.ganjiangps.huochetou.mapper.UserAccountInfoMapper;
import com.ganjiangps.huochetou.model.UserAccountInfo;
import com.ganjiangps.huochetou.service.UserAccountInfoService;

@Service
public class UserAccountInfoServiceImpl extends ServiceImpl<UserAccountInfoMapper, UserAccountInfo>
		implements UserAccountInfoService {

	/**
	 * 根据用户名查询姓名
	 *
	 * @param username
	 * @return
	 */
	@Override
	public UserAccountInfo selectByUname(String username) {
		// TODO Auto-generated method stub
		UserAccountInfo accountInfo = new UserAccountInfo();
		accountInfo.setUsername(username);
		return baseMapper.selectOne(accountInfo);
	}

}
